﻿using System;
using System.Web;
using System.IO;

namespace AdventureWorks.Helpers
{
	public static class ProductHelper
	{
		public static Byte[] GetThumb(HttpPostedFileBase file)
		{
			Stream st = file.InputStream;

			var buffer = new Byte[st.Length];

			st.Read(buffer, 0, (int)st.Length);

			return buffer;
		}
	}
}
